﻿@using CMSMVC4.MultiResource
@{
    Layout = null;
}

<div class="box paint">
    <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
        <div class="modal-header">
            <button type="button" class="close1" data-dismiss="modal" aria-hidden="true">×</button>
            <h4>@Admin.AreUSure</h4>
        </div>
        <div class="modal-body">
        </div>
        @using (Ajax.BeginForm("Delete", "Comment", new AjaxOptions() { HttpMethod = "POST", UpdateTargetId = "dialog", OnSuccess = "show()" }))
        {
            <div class="modal-footer">
                <a href="#" class="btn" onclick="hide()">Close</a>
                <input type="submit" class="btn btn-primary" value="Save changes" />
            </div>
        }

    </div>
</div>
<!-- End .content -->
<a class="btn change_color_outside"><i class="paint_bucket"></i></a>

<script>
    $('.close1').click(function (e) {
        //hủy bỏ các link liên kết,"bỏ dấu #"
        //$("#myModal").addClass("hidden");
        e.preventDefault();
        //đóng thẻ dialog
        $("#dialog").fadeOut(500);
        //đóng thẻ nền dialog
        $("#dialog_nen").fadeOut(500);
    });
</script>
